#ifndef BATCHCHECKOUTRESPONSE_H
#define BATCHCHECKOUTRESPONSE_H

#include "BaseResponse.h"
struct BatchCheckOutResponsePcuInfo
{
    QString locationNo;
    QString pcu;
    QString resultMsg;
};

class BatchCheckOutResponse : public BaseResponse
{
public:
    BatchCheckOutResponse();
    BatchCheckOutResponse(QString factoryNo,QString transId,QDateTime eventTime,QString resultCode,QList<BatchCheckOutResponsePcuInfo> pcuInfo);
    // BaseResponse interface
    bool fromJson(const QByteArray &jsonData) override;
    bool isSuccess() const override{return success;}
    QString getError() const override{return resultMsg;}


public:
    QString factoryNo;
    QString transId;
    QDateTime eventTime;
    QString resultCode;
    int code;
    QList<BatchCheckOutResponsePcuInfo> pcuInfo;
private:
    bool success;
    QString resultMsg;

};

#endif // BATCHCHECKOUTRESPONSE_H
